import http from '../../utils/request'
//图书查询接口
export const getBorrowPageData =(params) =>{
    return http.get('/brrow',
        {params}).then(reponse =>{
        return reponse.data.borrowingRecordPaasPage;
    }).catch(error => {
        console.error(error);
    });
}

export const delBorrow =(params) =>{
    var id = params.id;
    return http.post('/brrow/d/'+id).then(response =>{
        return response;
    })
}

export const addBorrow =(params) =>{
    return http.post('/brrow',params).then(response =>{
        return response;
    })
}
